package org.tio.sitexxx.service.timetask;

import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.sitexxx.service.zk.ImServerNodeListener;
import org.tio.utils.quartz.AbstractJobWithLog;

/**
 * 定时获取im服务器列表
 * @author tanyaowu 
 * 2016年11月5日 下午8:31:30
 */
public class ImServerUpdateTask extends AbstractJobWithLog {

	private static Logger log = LoggerFactory.getLogger(ImServerUpdateTask.class);

	public static ImServerUpdateTask me = new ImServerUpdateTask();

	@Override
	public void run(JobExecutionContext context) throws Exception {
		try {
			ImServerNodeListener.updateImServers();
		} catch (Exception e) {
			log.error(e.toString(), e);
		}
	}

}
